package com.demo.springcloud.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;

/**
 * @author chenyuan
 * @date 2020/12/24 15:32
 */
@Mapper
public interface AccountMapper {
	/**
	 * 扣减账户余额
	 */
	int decrease(@Param("userId") Long userId, @Param("money") BigDecimal money);
}
